import { http } from '@/utils/http'

export interface userInfo {
  id: number
  username: string
  avatar: string
  accessToken: string
}

/**
 * 登陆接口
 */
export const loginApi = (wxCode: string) => {
  return http.post<userInfo>('/user/login', { wxCode })
}
